
<!DOCTYPE html>
<html>  
<head>
<title>欢乐送</title>
<!-- Custom Theme files -->
<link href="__PUBLIC__/assets_h/csslogin/style.css" rel="stylesheet" type="text/css" media="all"/>

<script language="JavaScript">
    function fleshVerify(){
        document.getElementById("verifyImg").src="{:U('Home/Users/Verify')}";
    }
    </script>

 <script>


   function sendRequest()
  {   
    var url = "/WLLTWebApp/ JsonTestServlet ";   
    var mailAjax = new Ajax.Request(   
        url,   
        {   
    method: 'post',   
    onComplete: jsonResponse   
        }   
    );   
}    
  function jsonResponse($data['status']) {   
    alert(originalRequest.responseText);   
    var myobj = originalRequest.responseText.parseJSON();   
    alert(myobj.name);   
} 
    </script>


    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
  <include file="Public/header"/>
</head>
              
   <body>            
 <div class="login">
  
  <div class="login-top">
    <h1>登陆 </h1>
    <form method="post"  class="form-horizontal" action={:U(checkLogin)} enctype="multipart/form-data" onsubmit="return sendRequest();">
        <input class="form-control" placeholder="手机号" type="text" id="tel" name="tel" required>
                      <br>
                      <input class="form-control" placeholder="密码" type="password" id="password" name="password" required>
                      <br>
                      <div>
                    <input class="form-control" placeholder="验证码" type="text"    required  name="verify">
                    <img id="verifyImg" src="{:U('verify')}" onClick="fleshVerify()"
                          title="点击刷新验证码" style="cursor:pointer;border:0px" >
                     </div>

                      

                      <div class="forgot">
        <a href="#">忘记密码</a>
        <input type="submit" value="登陆" > </form>
      </div>
      </div>
     
      <div class="login-bottom">
    <h3>新用户？ &nbsp;<a href="{:U('reg')}">欢迎注册</a></h3>
    </div>
    </div>
   c

  




  </body>
  <script language="JavaScript">
    function fleshVerify(){
        document.getElementById("verifyImg").src="{:U('verify')}";
    }
</script>

</html>